package com.mall.book.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.book.entity.po.CategoryGroupInfo;
import com.mall.book.mappers.CategoryGroupInfoMapper;
import com.mall.book.service.CategoryGroupInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * Created by Dizziness on 2022/3/22 20:44
 */
@Service
public class CategoryGroupInfoServiceImpl implements CategoryGroupInfoService {
    @Autowired
    CategoryGroupInfoMapper categoryGroupInfoMapper;

    @Override
    public boolean saveBatch(Collection<CategoryGroupInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<CategoryGroupInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<CategoryGroupInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(CategoryGroupInfo entity) {
        return false;
    }

    @Override
    public CategoryGroupInfo getOne(Wrapper<CategoryGroupInfo> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<CategoryGroupInfo> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<CategoryGroupInfo> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<CategoryGroupInfo> getBaseMapper() {
        return categoryGroupInfoMapper;
    }

    @Override
    public Class<CategoryGroupInfo> getEntityClass() {
        return CategoryGroupInfo.class;
    }

    @Override
    public Collection<CategoryGroupInfo> getByMap(HashMap<String, Object> queryMap) {
        return categoryGroupInfoMapper.selectByMap(queryMap);
    }

    @Override
    public List<CategoryGroupInfo> getAll() {
        return categoryGroupInfoMapper.selectAll();
    }
}
